﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Demo.aspx.cs" Inherits="Demo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <UC:Css ID="cssUc" runat="server" />
    <title>Product Management </title>
</head>
<body class="admin-layout">
    <form name="form1" method="post" id="form1">
    <div class="wrap">
        <UC:Header ID="headerUc" runat="server" />
        <div class="main">
            <div id="left">
            </div>
            <div id="right">
                <div class="breadcrumb">
                    <a href="#">Category Management</a> › Add Category
                </div>
                <div id="content">
                    <div class="hd">
                        <h1 class="title">
                            Add Category</h1>
                    </div>
                    <div class="bd">
                        <fieldset>
                            <div class="form-item">
                                <label for="title">
                                    Category Name<span class="form-required">*</span></label>
                                <input type="text" class="text form-text" id="txtCategoryName" name="txtCategoryName">
                                <div class="description">
                                    Input name of the category
                                </div>
                            </div>
                            <div class="form-item">

                    


                                <label for="title">
                                    上传图片<span class="form-required">*</span></label>
                                <div class="con_right">
                                    <a class="btn_upload fl" href="#"><span id="spanButtonPlaceholder"></span></a><b
                                        id="uploadDesc"></b>
                                    <div class="clear">
                                    </div>
                                    <br />
                                    <div id="thumbnails">
                                    </div>
                                </div>
                                <br />





                            </div>
                            <div class="form-item">
                                <label for="title">
                                    Sequence<span class="form-required"></span></label>
                                <input type="text" class="text form-text" id="txtSequence" name="txtSequence">
                                <div class="description">
                                    Input sequence of the category
                                </div>
                            </div>
                            <div class="form-item">
                                <label for="title">
                                    Is New<span class="form-required">*</span></label>
                                <div class="checkbox">
                                    <table border="0" id="radioIsNew">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <input type="radio" value="true" name="radioIsNew" id="radioIsNew_0"><label for="radioIsNew_0">Yes</label>
                                                </td>
                                                <td>
                                                    <input type="radio" checked="checked" value="false" name="radioIsNew" id="radioIsNew_1"><label
                                                        for="radioIsNew_1">No</label>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="form-item">
                                <label for="title">
                                    Description<span class="form-required"></span></label>
                                <textarea style="width: 890px;" class="text form-text" id="txtDescription" cols="20"
                                    rows="2" name="txtDescription"></textarea>
                                <div class="description">
                                    Input description of the category
                                </div>
                            </div>
                            <div class="form-item">
                                <input type="submit" id="btnSubmit" onclick="return verify();" value="Submit" name="btnSubmit">
                                <input type="submit" id="btnBack" value="Back" name="btnBack">
                            </div>
                        </fieldset>
                    </div>
                </div>
            </div>
        </div>
        <UC:Footer ID="footerUc" runat="server" />
    </div>
    </form>
    <UC:Js ID="JSUc" runat="server" />
    <script type="text/javascript" src="UEditor/third-party/swfupload/swfupload.js"></script>
    <script type="text/javascript" src="js/handlers.js"></script>
    <script type="text/javascript">
        var ASPSESSID = "<%=Session.SessionID %>";
        var swfu = new SWFUpload({
            upload_url: "topicImgUpload.ashx",
            post_params: {
                "ASPSESSID": ASPSESSID
            },
            file_post_name: "filedata",
            file_size_limit: "5 MB",
            file_types: "*.gif;*.jpeg;*.png;*.jpg",
            file_types_description: "图片",
            file_upload_limit: 5,    // Zero means unlimited

            file_queue_error_handler: fileQueueError,
            file_dialog_complete_handler: fileDialogComplete,

            upload_error_handler: uploadError,
            upload_success_handler: uploadSuccess,
            upload_complete_handler: uploadComplete,

            button_image_url: "js/XPButtonNoText_72x22.png",
            button_placeholder_id: "spanButtonPlaceholder",
            button_width: 74,
            button_height: 22,
            button_text: '<a href="#" class="btn_common fl">上传图片</a>',
            button_text_style: '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt; } .buttonSmall { font-size: 10pt; }',
            button_text_top_padding: 1,
            button_text_left_padding: 5,

            flash_url: "UEditor/third-party/swfupload/swfupload.swf",

            custom_settings: {
                upload_target: "divFileProgressContainer"
            },
            debug: false
        });
    </script>
</body>
</html>
